function Bitmap(object, height)
{
	
	var _canvas  = document.createElement("canvas");
	var _context = _canvas.getContext("2d");
	
	if ((object instanceof HTMLImageElement) || (object instanceof Image))
	{
		_canvas.width  = Math.absInt(object.width);
		_canvas.height = Math.absInt(object.height);
		_context.drawImage(object, 0, 0, _canvas.width, _canvas.height);
	}
	else
	{
		_canvas.width  = Math.absInt(object);
		_canvas.height = Math.absInt(height);
	}
	
	this.getWidth = function()
	{
		return _canvas.width;
	}
	
	this.getHeight = function()
	{
		return _canvas.height;
	}
	
	this.getCanvas = function()
	{
		return _canvas;
	}
	
	this.getContext = function()
	{
		return _context;
	}
	
	// Add more functions here (look up RPG Maker VX Ace help file)
	
}